#27 ✓invalid
Matt Patterson

RiCal date conversion methods use DateTIme#utc_time which is an ActiveSupport extentsion

Reported by Matt Patterson | 2009-12-20 04:24:47 UTC

RiCal's datetime #to_time conversion method uses DateTIme#utc_time, which is an ActiveSupport DateTime extension.

This is only a problem if ActiveSupport isn't declared as a required dependency

Comments and changes to this ticket

  • Rick DeNatale

    Rick DeNatale 2009-12-20 10:02:43 UTC

    This actually appears to be in code which isn't actually used by ri_cal.

    I've removed the definitions of both DateTime#to_time, and Date#to_time in the cases where ActiveSupport isn't loaded, and all specs still pass.

    Note that ri_cal doesn't declare activesupport or tzinfo as a gem dependency since it will work with either, and rubygems don't allow alternate dependencies to be declared.

  • Matt Patterson

    Matt Patterson 2009-12-20 14:30:44 UTC

    Great. Sorry I didn't have time to investigate more thoroughly and file a better ticket...

  • Rick DeNatale

    Rick DeNatale 2010-04-16 18:19:04 UTC

    • State changed from “new” to “invalid”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A new icalendar data (RFC 2445) gem for Ruby which supports time zones and enumeration of occurrences

Shared Ticket Bins

People watching this ticket

Pages